package com.tien.model;

import java.util.Date;
import java.util.Set;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * @author xt40919
 * @version Create Time：Aug 15, 2011 1:51:45 PM
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Employee implements java.io.Serializable {

	/**
* 
*/
	private static final long serialVersionUID = -7998004746807404526L;
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	@Persistent
	private String firstName;

	@Persistent
	private String lastName;

	@Persistent
	private String password;
	@Persistent
	private Integer publishNum;
	@Persistent
	private Date lastPublishTime;
	@Persistent
	private Set<Classify> classify;

	@Persistent
	private Date hireDate;

	public Employee() {
	}

	public Employee(String firstName, String lastName, Date hireDate) {
		this.firstName = firstName;
		this.lastName = lastName;
		this.hireDate = hireDate;
	}

	public Employee(String firstName, String lastName, String password,
			Integer publishNum, Date hireDate) {
		this.firstName = firstName;
		this.lastName = lastName;
		this.password = password;
		this.publishNum = publishNum;
		this.hireDate = hireDate;
	}

	// Accessors for the fields. JDO doesn't use these, but your application
	// does.

	public Long getId() {
		return id;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public Date getHireDate() {
		return hireDate;
	}

	public void setHireDate(Date hireDate) {
		this.hireDate = hireDate;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getPublishNum() {
		return publishNum;
	}

	public void setPublishNum(Integer publishNum) {
		this.publishNum = publishNum;
	}

	public Date getLastPublishTime() {
		return lastPublishTime;
	}

	public void setLastPublishTime(Date lastPublishTime) {
		this.lastPublishTime = lastPublishTime;
	}

	public Set<Classify> getClassify() {
		return classify;
	}

	public void setClassify(Set<Classify> classify) {
		this.classify = classify;
	}

}
